package org.codefinger.dao.impl.sql;

import org.codefinger.dao.impl.SQLVisitor;

public class Group {

	private GroupItem[]	groupItems;

	public Group(GroupItem[] groupItems) {
		super();
		this.groupItems = groupItems;
	}

	public void visit(SQLVisitor visitor) {
		visitor.appendSQL(" GROUP BY ");
		for (GroupItem item : groupItems) {
			item.visit(visitor);
		}
	}

}
